/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ing.sisval.gui.control.model;

import org.ing.sisval.be.BEValuacionComplementario;
import org.rx.cr.gui.table.AbstractTableModel;

/**
 *
 * @author Mysham
 */
public class ModeloValuacionComplementario extends AbstractTableModel<BEValuacionComplementario>{

    public ModeloValuacionComplementario() {
        setTitles(new String[]{"Nombre","Subtotal"});
    }
    

    @Override
    public Object getObjectCell(int fila, int columna) {
        switch(columna){
            case 0: return get(fila).getNombre();
                case 1: return get(fila).getValorTotal();
            default: return null; 
        }
    }
    
}
